import requests
from lxml import etree

name = '斗破苍穹'

url = 'https://www.yinhuadm.xyz/vch/'+name+'.html'

headers = {
    'referer': 'https://www.yinhuadm.xyz/',
}
url = 'https://player.mcue.cc/yinhua/?url=MCZY-1646yYUKyaIaFSIMJUfISwbiTSEXFIV6gwgRfujXxJ_6cUSgApqOL-ya2eZYZQXlRKBfB_9fvtRLvjJcBVr3x_vIgePtjLqzIPEdCF3RvY4GpWuF1QbS&next=https://www.yinhuadm.xyz/p/4870-1-3.html&title=%E6%96%97%E7%A0%B4%E8%8B%8D%E7%A9%B9%E5%B9%B4%E7%95%AA%20%E7%AC%AC02%E9%9B%86%E5%9C%A8%E7%BA%BF%E6%92%AD%E6%94%BE'
r = requests.get(url,headers=headers)

print(r)

r = r.text

print(r)

r = etree.HTML(r)

total = r.xpath('.//div[@class="module-items module-card-items"]/div')

print(len(total))

for i in total:
    print(i)

import requests

url = "https://cdn.l-il.cn/ajax/lucky/play/setting.js?20220101"
resp = requests.get(url, timeout=10)
print(resp.text[:500])   # 先看前500个字符